//
//  AboutViewController.m
//  bondwatch_purecode
//
//  Created by Jason Yuan on 6/25/15.
//  Copyright (c) 2015 Sumridge. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()
{
    UITextView *aboutTextView;
}

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"About Sumridge";
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIBarButtonItem *settingBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Settings"] style:UIBarButtonItemStylePlain target:self action:@selector(settingBarButtonItemPressed:)];
    settingBarButton.tintColor = SUMRIDGECOLOR;
    self.navigationItem.leftBarButtonItem = settingBarButton;
    
    aboutTextView = [[UITextView alloc] init];
    aboutTextView.text = @"SumRidge Partners LLC is a top ranked principal based fixed income market maker, specializing in high yield and investment grade corporate bonds, municipal bonds, institutional preferred securities, emerging market bonds, and non-agency mortgage backed securities.  SumRidge Partners was formed in 2010 following the aftermath of the financial crisis and subsequent liquidity shortfall that occurred within fixed income trading; operating as a premier, electronic based fixed income market maker, specifically catering to clients that trade in quantities of $1-2mm and under.  SumRidge uses its own balance sheet to facilitate flow trading, ensuring instantaneous execution for our diverse client base.  SumRidge currently ranks among the top liquidity providers for odd lot trading on most major electronic bond exchanges, leveraging the firm’s technological strengths and an experienced sales and trading team.  In addition to live market making, SumRidge also offers actionable fixed income trade ideas and trading desk commentary to a dynamic distribution platform of institutional, middle market, and wealth management clients worldwide.";
    aboutTextView.editable = NO;
    aboutTextView.textColor = SUMRIDGECOLOR;
    [self.view addSubview:aboutTextView];
    
    [aboutTextView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(10);
        make.top.equalTo(self.view).offset(10);
        make.right.equalTo(self.view).offset(-10);
        make.bottom.equalTo(self.view).offset(-10);
    }];
}

- (void)settingBarButtonItemPressed:(id)sender {
    [self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
